package huhx.linux.com.kotlinlearn.adapter

/**
 * Created by huhx on 2018-03-18 上午 9:43.
 */

class ActivityAdapter {
    internal val string = "huhx" // final修饰
    private val privateString = "private" // private修饰

    // public修饰
    fun normalMethod() {
        System.out.printf("normal method.")
    }

    // 内部类
    internal inner class Inner {
        // private修饰
        private val string = "inner static"

        // public修饰
        fun innerStaticMethod() {
            System.out.printf("inner method.")
        }
    }

    companion object {
        internal var staticString = "static" // static修饰
        internal val finalString = "final static" // final static修饰

        // private static修饰
        private fun privateStaticMethod() {
            System.out.printf("private static method.")
        }
    }
}